//
//  TRAppDelegate.h
//  WeiMiLan
//
//  Created by Mac on 14-7-16.
//  Copyright (c) 2014年 Mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WXApi.h"
#import "OLImage.h"
#import "WebAPI.h"
#import "TRLeftViewController.h"
#import "DDMenuController.h"
#import "TRTabBarViewController.h"
#import "RCDraggableButton.h"
#import "AFNetworking.h"
#import "OLImage.h"
#import "OLImageView.h"
//#import "TRGuideViewController.h"
#import "ASIHTTPRequest.h"
#import "QLPlayerManager.h"
#import "UMFeedback.h"
#import "QLUserManager.h"
#import "QLFollowManager.h"
#import "QLMessageView.h"
#import "UMessage.h"
#import "TRUserLoginViewController.h"
#import <SMS_SDK/SMSSDK.h>
#import "UMFeedbackViewController.h"

#define UMSYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) 
#define _IPHONE80_ 80000

@interface TRAppDelegate : UIResponder <UIApplicationDelegate,WXApiDelegate,UIAlertViewDelegate>
{
    enum WXScene _scene;
    
    UIBackgroundTaskIdentifier bgTask;
    
    NSUInteger counter;
    
}

@property (strong, nonatomic) UIWindow *window;
//UDP
@property(nonatomic,strong)AsyncUdpSocket* upSocket;
//集成socket
@property (nonatomic, strong) ASIHTTPRequest *request;
@property(nonatomic,copy)NSString * userName;
@property(nonatomic,copy)NSString * password;
@property(nonatomic,copy)NSString * userID;
@property(nonatomic,strong)NSURL * uploadUrl;
@property(nonatomic,strong)NSString *currentUserId;


@property(nonatomic,strong)UIImage * loadingImage;
@property(nonatomic,strong)OLImage* gifImage;
//标签
@property(nonatomic,copy)NSString * markString;
@property(nonatomic,strong)NSMutableDictionary * markDictionary;
@property(nonatomic) BOOL markIsChang;

//VC
@property(strong,nonatomic)DDMenuController * ddVC;
@property(strong,nonatomic)TRTabBarViewController * rootVC;
@property(strong,nonatomic)TRLeftViewController *leftVC;

//http

@property(strong,nonatomic)WebAPI * webAPI;


//上传字典
@property (strong,nonatomic)NSDictionary * sendImagesDict;


//分享
@property(strong,nonatomic)NSString *shareURL;
@property(strong,nonatomic)NSString *shareTitle;
@property(strong,nonatomic)NSString *shareContent;
@property(strong,nonatomic)UIImage *shareImage;
@property (strong,nonatomic)UIImage *shareImageHD;//高清图片

//上传图片
@property(nonatomic,assign)NSInteger numCount;
@property(nonatomic,strong)RCDraggableButton * upDataLoadingBtn;

//@property(nonatomic,strong)NSURLSessionDataTask *task;
@property(nonatomic,strong)NSMutableArray *taskArr;
@property(nonatomic,strong)AFURLSessionManager *manager;
@property(nonatomic,strong)NSMutableDictionary *byteCent;
@property(nonatomic,assign)NSInteger imageCount;

@property(nonatomic,copy)NSString* percentString;
@property(nonatomic,copy)NSString* timeString;
@property(nonatomic,copy)NSString* urlHearder;
@property(nonatomic,strong)NSDictionary * userdictnary;

//上传功能的信息

@property(nonatomic,strong)NSDictionary * sendImageDict;
@property (nonatomic,strong) UIImage *uploadImage;
@property (nonatomic,assign) int currentIndex;
@property (nonatomic,strong) NSArray *nameArr;

- (void)sendImageWithImage:(NSDictionary *)imageDict andName:(NSArray *)nameArr;
-(void)sendMessageToService:(NSString *)message URLString:(NSURL*)url;
-(void) changeScene:(NSInteger)scene;
- (void) sendLinkContent;

@property(strong,nonatomic)NSMutableArray *adArray;//广告
@property (nonatomic,strong) QLMessageView *messageView;
@property (nonatomic,strong) NSDictionary *notificationInfo;
@property (nonatomic,strong) UIViewController *feedbackViewController;
- (void) sendImageContent:(UIImage *)image;

@property (strong, nonatomic) NSMutableArray *messageArr;

@end
